package com.yycx.module.bus.provider.service;

import com.yycx.common.mybatis.base.service.IBaseService;
import com.yycx.module.bus.client.entity.BusFinance;
import com.yycx.module.bus.client.entity.BusFinanceDetails;
import com.yycx.module.bus.client.entity.BusOrderDetails;

import java.io.Serializable;
import java.util.List;

/**
 * 对账明细 接口
 *
 * @author flyme
 * @date 2021-01-10
 */
public interface BusFinanceDetailsService extends IBaseService<BusFinanceDetails> {

    /**
     * 初始化对账明细
     *
     * @param benQiHjFinance
     */
    List<BusFinanceDetails> initThisBusFinanceDetails(BusFinance benQiHjFinance);

    /**
     * 查询上期累计
     *
     * @param orderDetailsList
     * @param benQiHjFinance
     * @return
     */
    List<BusFinanceDetails> initLastBusFinanceDetails(List<BusOrderDetails> orderDetailsList, BusFinance benQiHjFinance);



    /**
     * 查询上期累计
     *
     * @param benQiFinance
     * @return
     */
    List<BusFinanceDetails> selectLastByFinanceId(BusFinance benQiFinance);

    void removeByFinanceId(Serializable financeId);

     List<BusFinanceDetails> listByFinanceId(Long financeId);
}
